<template>
  <el-tabs v-model="activeTab" type="border-card" @tab-click="changeTab" class="tag-tabs">
    <el-tab-pane label="标签信息更新" name="infoUpdate">
      <info-update ref="infoUpdate"></info-update>
    </el-tab-pane>
    <el-tab-pane label="同步数据库管理" name="database">
      <database ref="database"></database>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import database from '../../database/database'
import infoUpdate from './information-update'
export default {
  components: {
    database,
    infoUpdate
  },
  data() {
    return {
      activeTab: 'infoUpdate'
    }
  },
  methods: {
    changeTab(tab) {
      if (this.$refs[tab.name].getList) this.$refs[tab.name].getList()
    }
  }
}
</script>

<style lang="scss"></style>
